package xyz.xtgl.merchant.entity;

import java.math.BigDecimal;
import java.util.Date;
import plus.logic.LogicBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * b端用户表，用来存放商家用户信息，用户可以用登录名、邮箱、手机号码进行登录
 * </p>
 *
 * @author liubo
 * @since 2020-02-14
 */
@Data
@ToString
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="BMerchantUser对象", description="b端用户表，用来存放商家用户信息，用户可以用登录名、邮箱、手机号码进行登录")
public class BMerchantUser extends LogicBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公司名称")
    private String companyName;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "手机号码(用户名)")
    private String phone;

    @ApiModelProperty(value = "联系人")
    private String contactName;

    @ApiModelProperty(value = "联系地址")
    private String contactAddress;

    @ApiModelProperty(value = "门店类型[1:零售超市,2:餐饮,3:服装鞋帽,4:娱乐KTV,5:美容美发,6:手机电子,-1:其他]")
    private Integer trade;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "省code")
    private Integer provinceCode;

    @ApiModelProperty(value = "市code")
    private Integer cityCode;

    @ApiModelProperty(value = "区县code")
    private Integer areaCode;

    @ApiModelProperty(value = "行业分类id")
    private Integer industryId;

    @ApiModelProperty(value = "头像url")
    private String faceUrl;

    @ApiModelProperty(value = "头像域名")
    private String faceDomain;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "用户积分，（我们生成，不做double）")
    private Integer userScore;

    @ApiModelProperty(value = "信用等级  0无等级")
    private Integer creditRating;

    @ApiModelProperty(value = "注册id")
    private Integer registerId;

    @ApiModelProperty(value = "用户品级，越小品级越高")
    private Integer userGrade;

    @ApiModelProperty(value = "密码输入错误次数")
    private Integer errorNum;

    @ApiModelProperty(value = "最后一次错误时间")
    private Date errorDate;

    @ApiModelProperty(value = "云后台版本code")
    private Integer versionCode;

    @ApiModelProperty(value = "到期日期")
    private Date expireDate;

    @ApiModelProperty(value = "状态[0:未开通,1:已开通,-1:未付款]")
    private Integer state;

    @ApiModelProperty(value = "是否支持单店单价[0:不支持,1:支持]")
    private Integer isSingleUnit;

    @ApiModelProperty(value = "员工是否可以修改售价[0:不支持,1:支持]")
    private Integer isUpSalePrice;

    @ApiModelProperty(value = "分账比例")
    private BigDecimal alipaySplitRatio;

    @ApiModelProperty(value = "使用类型[1:基础试用版,2:基础年费版,3:vip年费版,4:vip无限制版]")
    private Integer userType;

    @ApiModelProperty(value = "POS点数[1:单点,2:多点]")
    private Integer isSignin;

    @ApiModelProperty(value = "商户类型[1:零售商户,2:批发商户,3:批零商户]")
    private Integer userProperty;

}
